<template>
  <div id="app">
    <input type="number" step="100" v-model="counter" />
    <h2>当前计数：{{ showCounter.toFixed(0) }}</h2>
  </div>
</template>

<script>
import gsap from "gsap";
export default {
  name: "App",
  data() {
    return {
      counter: 0,
      showCounter: 0,
    };
  },
  watch: {
    counter(newValue) {
      gsap.to(this, {
        duration: 0.5,
        showCounter: newValue,
      });
    },
  },
};
</script>

<style lang="less">
</style>
